Пример #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);
            }
        }