Пример #1
0
 public IOneSkyResponse SignIn(string email, string password)
 {
     return
         (OneSkyHelper.CreateAnonymousRequest(SignInAddress)
          .Body(SignInEmailBody, email)
          .Body(SignInPasswordBody, password)
          .Post());
 }
Пример #2
0
 internal Plugin(OneSkyHelper oneSky)
 {
     this.Locale         = new PluginLocale(oneSky);
     this.Specialization = new PluginSpecialization(oneSky);
     this.Project        = new PluginProject(oneSky);
     this.Item           = new PluginItem(oneSky);
     this.Quotation      = new PluginQuotation(oneSky);
     this.Order          = new PluginOrder(oneSky);
     this.Account        = new PluginAccount(oneSky, OneSkyClient.Anonymous);
     this.LanguagePair   = new PluginLanguagePair(oneSky);
 }
Пример #3
0
 internal Platform(OneSkyHelper oneSky)
 {
     this.Locale       = new PlatformLocale(oneSky);
     this.ProjectType  = new PlatformProjectType(oneSky);
     this.ProjectGroup = new PlatformProjectGroup(oneSky);
     this.Project      = new PlatformProject(oneSky);
     this.Quotation    = new PlatformQuotation(oneSky);
     this.Order        = new PlatformOrder(oneSky);
     this.File         = new PlatformFile(oneSky);
     this.ImportTask   = new PlatformImportTask(oneSky);
     this.Translation  = new PlatformTranslation(oneSky);
     this.Screenshot   = new PlatformScreenshot(oneSky);
 }
Пример #4
0
 internal PluginProject(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #5
0
 internal PlatformProjectGroup(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #6
0
 internal PluginLocale(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #7
0
 internal PlatformImportTask(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #8
0
 private OneSkyClient(OneSkyHelper oneSky)
 {
     this.Platform = new Platform(oneSky);
     this.Plugin   = new Plugin(oneSky);
 }
Пример #9
0
 internal PluginOrder(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #10
0
 internal PluginLanguagePair(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #11
0
 internal PluginAccount(OneSkyHelper oneSky, IPluginAnonymous anonymous)
 {
     this.anonymous = anonymous;
     this.oneSky    = oneSky;
 }
Пример #12
0
 internal PluginItem(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #13
0
 public IOneSkyResponse SignUp(string email)
 {
     return(OneSkyHelper.CreateAnonymousRequest(SignUpAddress).Body(SignUpEmailBody, email).Post());
 }
Пример #14
0
        /// <summary>
        /// Creates instance of OneSky client with your API keys.
        /// </summary>
        /// <param name="publicKey">
        /// Public API key.
        /// </param>
        /// <param name="secretKey">
        /// Secret API key.
        /// </param>
        /// <returns>
        /// Plain OneSky client <see cref="IOneSkyClient"/>.
        /// </returns>
        public static IOneSkyClient CreateClient(string publicKey, string secretKey)
        {
            var oneSky = new OneSkyHelper(publicKey, secretKey);

            return(new OneSkyClient(oneSky));
        }
Пример #15
0
 internal PlatformTranslation(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #16
0
 internal PlatformProjectType(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #17
0
 internal PlatformLocale(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #18
0
 internal PluginSpecialization(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Пример #19
0
 internal PluginQuotation(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }