Example #1
0
        public static string GetCoverUrl(this IStoreApplication application, CdnAssetFormat format = default, int?size = null)
        {
            var coverHash = application.CoverHash;

            return(coverHash != null
                ? Discord.Cdn.GetApplicationCoverUrl(application.Id, coverHash, format, size)
                : null);
        }
Example #2
0
 public SubmitApplication(ICfChecker cfChecker,
                          IGetActiveApplicationsByFiscalCode getActiveApplicationsByFiscalCode,
                          IPinBuilder pinBuilder,
                          IStoreApplication storeApplication)
 {
     this.cfChecker = cfChecker ?? throw new ArgumentNullException(nameof(cfChecker));
     this.getActiveApplicationsByFiscalCode = getActiveApplicationsByFiscalCode ?? throw new ArgumentNullException(nameof(getActiveApplicationsByFiscalCode));
     this.pinBuilder       = pinBuilder ?? throw new ArgumentNullException(nameof(pinBuilder));
     this.storeApplication = storeApplication ?? throw new ArgumentNullException(nameof(storeApplication));
 }
Example #3
0
 public AccountController(
     IRequestInfoService info,
     IStoreApplication storeApp,
     IApplicationStoreApplication appStoreApp,
     ITransferTokenApplication transferTokenApp,
     IAccountResetPasswordTokenApplication resetPasswordTokenApp,
     IResetSMSTokenApplication resetSMSTokenApplication,
     IAccountApplication accountApp)
     : base(info)
 {
     this.accountApp               = accountApp;
     this.storeApp                 = storeApp;
     this.appStoreApp              = appStoreApp;
     this.transferTokenApp         = transferTokenApp;
     this.resetPasswordTokenApp    = resetPasswordTokenApp;
     this.resetSMSTokenApplication = resetSMSTokenApplication;
 }
 public ValuesController(IStoreApplication storeApplication)
 {
     this.storeApplication = storeApplication;
 }
Example #5
0
 public ApplicationStoreController(IRequestInfoService info, IStoreApplication storeApp, IApplicationStoreApplication appStore)
     : base(info)
 {
     this.storeApp = storeApp;
     this.appStore = appStore;
 }
Example #6
0
 public StoreController(IRequestInfoService info, IStoreApplication storeApp)
     : base(info)
     => this.storeApp = storeApp;