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