예제 #1
0
 public static LogObject ConvertToLogObject(MSLogObject mslo)
 {
     LogObject lo = new LogObject();
     lo.Id = mslo.id;
     lo.Who = mslo.who;
     lo.When = mslo.when;
     lo.What = mslo.what;
     lo.Verb = mslo.verb;
     return lo;
 }
예제 #2
0
        public static LogObject ConvertToLogObject(MSLogObject mslo)
        {
            LogObject lo = new LogObject();

            lo.Id   = mslo.id;
            lo.Who  = mslo.who;
            lo.When = mslo.when;
            lo.What = mslo.what;
            lo.Verb = mslo.verb;
            return(lo);
        }
예제 #3
0
        public async Task <bool> AddLogObjectAsync(LogObject log)
        {
            MSLogObject msno = LogObject.ConvertToMSLogObject(log);

            msno.spot_id = this.Id;
            try
            {
                await App.MobileService.GetTable <MSLogObject>().InsertAsync(msno);

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