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 }); } }
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 }); } }
public GetAccessTokenResult(bool success, AccessToken token, ErrorFromServer error) { this.Success = success; this.Token = token; this.Error = error; }