コード例 #1
0
 /// <summary>
 /// Returns a Expedition instance
 /// </summary>
 /// <param name="parse"></param>
 /// <returns></returns>
 public static SystemPointer Map(ParseObject parseObject)
 {
     SystemPointer sp = new SystemPointer();
     sp.ObjectId = parseObject.ObjectId;
     sp.CreatedAt = parseObject.CreatedAt.Value;
     sp.UpdatedAt = parseObject.UpdatedAt.Value;
     sp.CurrentObjectId = parseObject.Get<string>("currentObjectId");
     sp.LastObjectId = parseObject.Get<string>("lastObjectId");
     return sp;
 }
コード例 #2
0
 public async Task<SystemPointer> Save(SystemPointer entity) {
     if (null == entity) throw new ArgumentNullException("SystemPointer");
     ParseObject systemPointer = new ParseObject("SystemPointer");
     
     systemPointer["expedition"] = _expedition.ObjectId;
     systemPointer["currentObjectId"] = entity.CurrentObjectId;
     systemPointer["lastObjectId"] = entity.LastObjectId;
     await systemPointer.SaveAsync();
     entity.ObjectId = systemPointer.ObjectId;
     entity.CreatedAt = systemPointer.CreatedAt.Value;
     entity.UpdatedAt = systemPointer.UpdatedAt.Value;
     return entity;
 }
コード例 #3
0
 public Task<SystemPointer> Insert(SystemPointer entity) {
     throw new NotImplementedException();
 }