Esempio n. 1
0
 public GetShipsForMenuResult(List <Ship> ships)
 {
     this.Success = true;
     this.Error   = null;
     this.Ships   = new List <GenericItemForPicklist>();
     foreach (var item in ships)
     {
         this.Ships.Add(new GenericItemForPicklist()
         {
             Id = item.Id, Name = item.Name + ", a " + item.Type
         });
     }
 }
Esempio n. 2
0
 public GetCharactersForMenuResult(List <Character> characters)
 {
     this.Success    = true;
     this.Error      = null;
     this.Characters = new List <GenericItemForPicklist>();
     foreach (var item in characters)
     {
         this.Characters.Add(new GenericItemForPicklist()
         {
             Id = item.Id, Name = item.Name + " the level " + item.Level.ToString() + " " + item.Profession
         });
     }
 }
Esempio n. 3
0
 public GetAccessTokenResult(bool success, AccessToken token, ErrorFromServer error)
 {
     this.Success = success;
     this.Token   = token;
     this.Error   = error;
 }