示例#1
0
 public static AthletesResponse CreateSavedChildResponse(Model.Child c)
 {
     return(new AthletesResponse
     {
         Type = AthletesResponseType.SavedChild,
         Child = CreateProtobufChild(c)
     });
 }
示例#2
0
 public static AthletesResponse CreateNewChildResponse(Model.Child c)
 {
     return(new AthletesResponse
     {
         Type = AthletesResponseType.NewChild,
         Child = new Child {
             Id = c.ID, Age = c.Age, IdEvent1 = c.IdEvent1, IdEvent2 = c.IdEvent2, Name = c.Name
         }
     });
 }
示例#3
0
 private static Child CreateProtobufChild(Model.Child c)
 {
     return(new Child
     {
         Id = c.ID,
         Age = c.Age,
         IdEvent1 = c.IdEvent1,
         IdEvent2 = c.IdEvent2,
         Name = c.Name
     });
 }