Professional Documents
Culture Documents
2.3.3Preconditions.....................................................................................9
2.3.4iOS Development Approach...............................................................9
2.3.5Server side Developemnt Approach..................................................9
1
LocationSmart Configuration
2.1.3 Preconditions
XXXX
Step 2
o
Step 2
o Below is json response if offers are present around device location from back-end
server.
{
"OfferList":[
{
"description":" Receive 20% off at any participating Miami Coach store when you
shop our luxurious selection of handcrafted leatherwear for men and women ",
"Offer":" Receive 20% Off Your Purchase ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.5778621 ",
"longitude":" -74.409177 "
},
{
"description":" Free Mojtio if other products cost's more then 50$ ",
"Offer":" One Free Ola Mojito(C/A) ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.546099 ",
"longitude":" -74.338549 "
}
]
}
2.2.3 Preconditions
XXXX
Step 2
o
o When the device is successfully registered i.e. stored on server. It will send the
acknowledgment to device with below json response
{ "result":"success" }
After receiving the lat-long device app sends the below request for getting offers
http://localhost:8080/LocationSmartRestService/SendPush?
deviceNumber=10000&latitude=40.51017&longitude=-74.36142
Parameters
1. deviceNumber Phone number of device
2. latitude latitude of device
3. longitude longitude of device
o Below is json response if offers are present around device location from back-end
server.
{
"OfferList":[
{
"description":" Receive 20% off at any participating Miami Coach store when you
shop our luxurious selection of handcrafted leatherwear for men and women ",
"Offer":" Receive 20% Off Your Purchase ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.5778621 ",
"longitude":" -74.409177 "
},
{
"description":" Free Mojtio if other products cost's more then 50$ ",
"Offer":" One Free Ola Mojito(C/A) ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.546099 ",
"longitude":" -74.338549 "
}
]
}
Step 2
2.3.3 Preconditions
XXXX
Step 2
o
Parameters
o When the device is successfully registered i.e. stored on server. It will send the
acknowledgment to device with below json response
{ "result":"success" }
Whenever back-end receives the trigger fired by Location Smart providing wifi SSID and
Phone number, server calculates whether the current time +30 min is schedule for the
SSID from table. If present then it send the SSID, Start Time(current time on server) and
End Time(current time on server+ 30 min) with the help of push notification to device.
User receives the push and is asked to reserve the SSID for that time.
If user decides NO then no action takes place. If YES then app send the below request to
server to reserve the conference room for that time being.
http://localhost:8080/LocationSmartRestService/ReservedWifi?
ssid=0000000000&starttime=16-07-2013 13:30&endtime=16-07-2013 14:00
o
Parameters
{ "result":"success" }
Step 2
Lesson Learnt
XXXX
XXXXX