public void SetDescription(L10NSimple description) { if (description != null) { Description = description.ToSerealizeString(); } }
public UserProfileInfo() { Title = new L10NSimple { En = "Profile", Ru = "Профиль", Es = "Perfil" }; }
public UserProfileChest() { Title = new L10NSimple { En = "Chest", Ru = "Сундук", Es = "Arcón" }; }
public UserProfileMeeds() { Title = new L10NSimple { En = "Achievements", Ru = "Достижения", Es = "Logros" }; }
public void Init(string npcName, int npcId, Avatar avatar = null, L10NSimple description = null, Dictionary <int, MeedDbModel> meeds = null) { Id = npcId; Nickname = npcName; AuthId = npcName; DateCreate = DateTime.UtcNow; IsNpc = true; Avatar = (UserImageModel)avatar ?? ServicesConnected.AzureStorageServices.ImageService.Avatar.DefaultUrls(); }
public L10NSimple GetDescription() { if (_description != null) { return(_description); } if (string.IsNullOrWhiteSpace(Description)) { return(_description = new L10NSimple()); } return(_description = Description.ToSpecificModel <L10NSimple>()); }
public void Init(NpcUser npc, L10NSimple description = null, Label img = null) { NpcAllianceId npcAllianceId; Enum.TryParse(npc.Nickname, true, out npcAllianceId); Id = (int)npcAllianceId; Name = npc.Nickname; CreatorId = npc.Id; CreatorName = npc.Nickname; DateCreate = npc.DateCreate; Description = (description == null) ? new L10NSimple().ToSerealizeString() : description.ToSerealizeString(); Images = img ?? Label.DefaultUrls(); Disbandet = false; // UserImagesDirectory.CheckUserDirectory(Label.Type, Id); }