Example #1
0
 public static bool DataSyncActionActionEventUpdate(ActionEventUpdate actionEventUpdate)
 {
     try {
         return(SQLiteDatabase.Instance.DataSyncUpdateActionEvent(actionEventUpdate));
     } catch {
         return(false);
     }
 }
Example #2
0
        public async Task <string> ActionEventUpdate(ActionEventUpdate URequestModel)
        {
            string URL    = WebAPI.Instance.webLinkActionEventUpdate + "/" + JsonConvert.SerializeObject(URequestModel).ToEncrypt();
            var    result = await WebAPI.Instance.HttpRequestProcess("GET", URL, null);

            if (result != null)
            {
                return(result.Replace("\"", "").ToDecrypt());
            }
            return(null);
        }
Example #3
0
        public bool DataSyncUpdateActionEvent(ActionEventUpdate actionEventUpdate)
        {
            try {
                database.CreateTable <ActionEventUpdate> ();

                int status = database.Update(actionEventUpdate);

                if (status == 0)
                {
                    database.Insert(actionEventUpdate);
                }

                return(true);
            } catch (Exception ex) {
                return(false);
            }
        }