Example #1
0
 public CommonResponse PublishLostThingRecord(LostThingsRecord record)
 {
     if (record == null)
     {
         return(new CommonResponse()
         {
             StatusCode = 1505
         });
     }
     if (thing.UpdateLostThingRecord(record, true))
     {
         PushClient.NotifyNewPublsih();
         return(new CommonResponse()
         {
             StatusCode = 0
         });
     }
     else
     {
         return(new CommonResponse()
         {
             StatusCode = 1503
         });
     }
 }
Example #2
0
 public string TestPushSerivce()
 {
     PushClient.NotifyNewPublsih();
     return("OK!");
 }