Example #1
0
 public IOneSkyResponse SignIn(string email, string password)
 {
     return
         (OneSkyHelper.CreateAnonymousRequest(SignInAddress)
          .Body(SignInEmailBody, email)
          .Body(SignInPasswordBody, password)
          .Post());
 }
Example #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);
 }
Example #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);
 }
Example #4
0
 internal PluginProject(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
 internal PlatformProjectGroup(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #6
0
 internal PluginLocale(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #7
0
 internal PlatformImportTask(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #8
0
 private OneSkyClient(OneSkyHelper oneSky)
 {
     this.Platform = new Platform(oneSky);
     this.Plugin   = new Plugin(oneSky);
 }
Example #9
0
 internal PluginOrder(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #10
0
 internal PluginLanguagePair(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #11
0
 internal PluginAccount(OneSkyHelper oneSky, IPluginAnonymous anonymous)
 {
     this.anonymous = anonymous;
     this.oneSky    = oneSky;
 }
Example #12
0
 internal PluginItem(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #13
0
 public IOneSkyResponse SignUp(string email)
 {
     return(OneSkyHelper.CreateAnonymousRequest(SignUpAddress).Body(SignUpEmailBody, email).Post());
 }
Example #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));
        }
Example #15
0
 internal PlatformTranslation(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
 internal PlatformProjectType(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #17
0
 internal PlatformLocale(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #18
0
 internal PluginSpecialization(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }
Example #19
0
 internal PluginQuotation(OneSkyHelper oneSky)
 {
     this.oneSky = oneSky;
 }