Exemple #1
0
 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"
     };
 }
Exemple #5
0
 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();
 }
Exemple #6
0
 public L10NSimple GetDescription()
 {
     if (_description != null)
     {
         return(_description);
     }
     if (string.IsNullOrWhiteSpace(Description))
     {
         return(_description = new L10NSimple());
     }
     return(_description = Description.ToSpecificModel <L10NSimple>());
 }
Exemple #7
0
        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);
        }