You are on page 1of 6

foodMe server changes V2

1) add complete details to an address City StreetName StreetNumber BlockNumber StairNumber FloorNumber ApartmentNumber Latitude Longitude Details AddressName - name after which the address is saved by the user in on the mobile app (eg: Home Address). This is useful after the user will reinstall the app on a new device..and will sync the addresses. Now the sync works..but there is no name for the saved address Both the database and the WCF api should be changed accordingly 2) Enable/disable restaurant When using syncronize method it should be possible to delete a restaurant. Probably the best way would be to send this info in a format like this: <Restaurants> <TotalCount>2147483647</TotalCount> <LastItemTimeStamp>1999-05-31T11:20:00</LastItemTimeStamp> <Items> <RestaurantDetail> <ID>2147483647</ID> <IsDeleted>TRUE</IsDeleted </RestaurantDetail> This setting should also be added to the MVC websiteon admin panel. 3) Make a restaurant Visible/Invisible

11/4/2012 7:53:32 PM

Page 1

Same approach as for deleting a restaurant.. 4) Delivery hours Into the <RestaurantDetail> we should add the info regarding the daily schedule Something like: <RestaurantDetail> <DailyScheduleOpenHour>10.00</DailyScheduleOpenHour> <DailyScheduleCloseHour>20.00</DailyScheduleCloseHour> </RestaurantDetail> based on this info the restaurant would be able to process orders only when the restaurant is able to take new orders 5) Show Deals When adding a new item on the menu it should be possible to add the item as a Deal. This would be showed by the mobile app on top of the menu. When new item will be added into the menua checkbox would be used to set/unset an item as deal. Also when a sync is donethis type of item should be flagged accordingly. For this we should add an extra attribute into the <DishItem> named <DisplayAsPromoted> Eg: <DishItem> .. <DisplayAsPromoted>true<DisplayAsPromoted> </DishItem>

DisplayAsPromoted edit fields has to be multiline

11/4/2012 7:53:32 PM

Page 2

6) Deleting an address does not work (WCF). This has to be fixed.

7) There is no Thumbnail URL sent to the Syncronize method (<ThumbnailUrl>String content</ThumbnailUrl>) Currently in the database there is just the name of the image (eg: 29-10-2012_21-2906-547.jpg) and has to stay like that. In order to have the complete URLa variable defined into web.config should be used.

11/4/2012 7:53:32 PM

Page 3

There there will be a custom configuration settings which will be used for other settings as well. For now it should be something like this:

<foodMe> <ThumbnailUrl>http>//foodme.ro/thumbnails/<ThumbnailUrl> <foodMe>

The app will read this setting and concatenate with the value from the database before sending it in the WCF Syncronize method.

Eg: <DishItem> <ID>2147483647</ID> <Name>String content</Name> <Ingredients>String content</Ingredients> <ThumbnailUrl> http>//foodme.ro/thumbnails/29-10-2012_21-29-06547.jpg</ThumbnailUrl> <Deleted>true</Deleted> </DishItem>

8) The Login (WCF) method needs to accept extra param that will just be added into the database (MobileClient table ) These params are in red:

<LoginInformation xmlns="http://schemas.datacontract.org/2004/07/TakeoutService"> <Username>String content</Username> <Password>String content</Password> <Permanent>true</Permanent> <AppVersion>true</AppVersion > <OsName>true</OsName > <OsVersion>true</OsVersion > <PhoneName>true</PhoneName >
11/4/2012 7:53:32 PM Page 4

</LoginInformation>

The only validation has to be done against the AppVersion

So in web.config we define MinAppVersion

<foodMe> <ThumbnailUrl>http>//foodme.ro/thumbnails/<ThumbnailUrl> <MinAppVersion>1.8</MinAppVersion> <foodMe>

If the client will pass a version smaller than the one defined in <MinAppVersion> the WCF api will return throw error VERSION_TOO_OLD .

9) Add radius settings to the restaurant info Into the <RestaurantDetail> we should add the info regarding the radius and the minimum order for up to 3 zones (user can define only one if he prefers that) Something like: <RestaurantDetail> <DeliveryRadiusZone1>10.00</ DeliveryRadiusZone1> <DeliveryMinOrderZone1>15.00</ DeliveryMinOrderZone1> <DeliveryRadiusZone2>20.00</ DeliveryRadiusZone2> <DeliveryMinOrderZone2>25.00</ DeliveryMinOrderZone2> <DeliveryRadiusZone3>35.00</ DeliveryRadiusZone3> <DeliveryMinOrderZone3>50.00</ DeliveryMinOrderZone3> </RestaurantDetail>

10) Phone number should be added into the fileds that describe a restaurants.
11/4/2012 7:53:32 PM Page 5

This value has to be added into <RestaurantDetail> and the web interface as well.

11/4/2012 7:53:32 PM

Page 6

You might also like