public BrandableStringsManager()
 {
     if (!LoadBrandedStrings())
     {
         Album  = new AlbumStrings(Resources.Views.AlbumRes.ResourceManager);
         Artist = new ArtistStrings(Resources.Views.ArtistRes.ResourceManager);
         Home   = new HomeStrings(Resources.Views.HomeRes.ResourceManager);
         Layout = new LayoutStrings(Resources.Views.LayoutRes.ResourceManager);
         Song   = new SongStrings(Resources.Views.SongRes.ResourceManager);
         User   = new UserStrings(Resources.Views.UserRes.ResourceManager);
     }
 }
Example #2
0
        public VerifyService(string accountId, string accountName, string apiKey, Manager manager, IUser requestor, UserStrings strings, IMessageChannel channel)
        {
            AccoutId    = accountId;
            AccountName = accountName;
            APIKey      = apiKey;
            Requestor   = requestor;
            Channel     = channel;
            Manager     = manager;

            this.strings = strings;

            API = new ApiFacade(APIKey);

            HasValidCharacter = false;
        }
Example #3
0
        public static async Task <VerifyService> CreateFromRequestMessage(IMessage requestMessage, Manager manager, UserStrings strings)
        {
            var tokens = AccountNameApiKeyRegex.Split(requestMessage.Content.Trim());

            if (tokens.Length != 4)
            {
                await requestMessage.Channel.SendMessageAsync(strings.ParseError);

                Console.WriteLine($"Could not verify {requestMessage.Author.Username} - Bad # of arguments");
                return(null);
            }

            if (tokens[2].Length != APIKeyLength)
            {
                await requestMessage.Channel.SendMessageAsync(strings.InvalidAPIKey);

                Console.WriteLine($"Could not verify {requestMessage.Author.Username} - Bad API Key");
                return(null);
            }

            return(new VerifyService(null, tokens[1], tokens[2], manager, requestMessage.Author, strings, requestMessage.Channel));
        }
Example #4
0
 public static VerifyService Create(string accountName, string apiKey, Manager manager, IUser requestor, UserStrings strings, IMessageChannel channel = null)
 {
     return(new VerifyService(accountName, null, apiKey, manager, requestor, strings, channel));
 }
Example #5
0
 public LookupService(Manager manager, UserStrings strings)
 {
     this.manager = manager;
     this.strings = strings;
 }
 public RemindVerifyService(Manager manager, UserStrings strings)
 {
     this.manager = manager;
     this.strings = strings;
 }
Example #7
0
 public WorldVerificationService(Manager manager, UserStrings strings)
 {
     this.manager = manager;
     this.strings = strings;
 }
Example #8
0
 public StatisticsService(Manager manager, UserStrings strings)
 {
     this.manager = manager;
     this.strings = strings;
 }