Esempio n. 1
0
        public IOneSkyResponse <IMeta, IOrderPlatformNew> Create(
            int projectId,
            IEnumerable <string> files,
            string toLocale,
            string orderType = "translate-only",
            bool isIncludingNotTranslated = true,
            bool isIncludingNotApproved   = true,
            bool isIncludingOutdated      = true,
            string translatorType         = "preferred",
            string tone           = "not-specified",
            string specialization = "general",
            string note           = null)
        {
            var plain = this.order.Create(
                projectId,
                files,
                toLocale,
                orderType,
                isIncludingNotTranslated,
                isIncludingNotApproved,
                isIncludingOutdated,
                translatorType,
                tone,
                specialization,
                note);

            return(JsonHelper.PlatformCompose <IMeta, IOrderPlatformNew, Meta, OrderPlatformNew>(plain));
        }
        public IOneSkyResponse <IMeta, INull> Upload(int projectId, IEnumerable <IScreenshot> screenshots)
        {
            var plainScreenshots = screenshots.Select(JsonConvert.SerializeObject);
            var plain            = this.screenshot.Upload(projectId, plainScreenshots);

            return(JsonHelper.PlatformCompose <IMeta, INull, Meta, Null>(plain));
        }
Esempio n. 3
0
        public IOneSkyResponse <IMeta, IFileInfoFull> Upload(
            int projectId,
            string file,
            string fileFormat,
            string locale            = null,
            bool isKeepingAllStrings = true)
        {
            var plain = this.platformFile.Upload(projectId, file, fileFormat, locale, isKeepingAllStrings);

            return(JsonHelper.PlatformCompose <IMeta, IFileInfoFull, Meta, FileInfoFull>(plain));
        }
Esempio n. 4
0
        public IOneSkyResponse <IMeta, IQuotationPlatform> Show(
            int projectId,
            IEnumerable <string> files,
            string toLocale,
            bool isIncludingNotTranslated = true,
            bool isIncludingNotApproved   = true,
            bool isIncludingOutdated      = true,
            string specialization         = "general")
        {
            var plain = this.quotation.Show(
                projectId,
                files,
                toLocale,
                isIncludingNotTranslated,
                isIncludingNotApproved,
                isIncludingOutdated,
                specialization);

            return(JsonHelper.PlatformCompose <IMeta, IQuotationPlatform, Meta, QuotationPlatform>(plain));
        }
        public IOneSkyResponse <IMeta, IEnumerable <IImportTaskFile> > List(int projectId, int page = 1, int perPage = 50, string status = "all")
        {
            var plain = this.importTask.List(projectId, page, perPage, status);

            return(JsonHelper.PlatformCompose <IMeta, IEnumerable <IImportTaskFile>, Meta, List <ImportTaskFile> >(plain));
        }
Esempio n. 6
0
        public IOneSkyResponse <IMetaList, IEnumerable <IFileDetails> > List(int projectId, int page = 1, int perPage = 50)
        {
            var plain = this.platformFile.List(projectId, page, perPage);

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <IFileDetails>, MetaList, List <FileDetails> >(plain));
        }
        public IOneSkyResponse <IMetaList, IEnumerable <IProjectType> > List()
        {
            var plain = this.projectType.List();

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <IProjectType>, MetaList, List <ProjectType> >(plain));
        }
        public IOneSkyResponse <IMeta, IProjectGroupNew> Create(string name, string locale = "en")
        {
            var plain = this.projectGroup.Create(name, locale);

            return(JsonHelper.PlatformCompose <IMeta, IProjectGroupNew, Meta, ProjectGroupNew>(plain));
        }
Esempio n. 9
0
        public IOneSkyResponse <IMeta, IOrderPlatformDetails> Show(int projectId, int orderId)
        {
            var plain = this.order.Show(projectId, orderId);

            return(JsonHelper.PlatformCompose <IMeta, IOrderPlatformDetails, Meta, OrderPlatformDetails>(plain));
        }
Esempio n. 10
0
        public IOneSkyResponse <IMetaList, IEnumerable <IOrderPlatformEntry> > List(int projectId, int page = 1, int perPage = 50, string fileName = null)
        {
            var plain = this.order.List(projectId, page, perPage, fileName);

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <IOrderPlatformEntry>, MetaList, List <OrderPlatformEntry> >(plain));
        }
        public IOneSkyResponse <IMetaPagedList, IEnumerable <IProjectGroup> > List(int page = 1, int perPage = 50)
        {
            var plain = this.projectGroup.List(page, perPage);

            return(JsonHelper.PlatformCompose <IMetaPagedList, IEnumerable <IProjectGroup>, MetaPagedList, List <ProjectGroup> >(plain));
        }
Esempio n. 12
0
        public IOneSkyResponse <IMetaList, IEnumerable <ILocaleProject> > Languages(int projectId)
        {
            var plain = this.project.Languages(projectId);

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <ILocaleProject>, MetaList, List <LocaleProject> >(plain));
        }
Esempio n. 13
0
        public IOneSkyResponse <IMeta, IFile> Delete(int projectId, string fileName)
        {
            var plain = this.platformFile.Delete(projectId, fileName);

            return(JsonHelper.PlatformCompose <IMeta, IFile, Meta, File>(plain));
        }
Esempio n. 14
0
        public IOneSkyResponse <IMeta, INull> Delete(int projectId)
        {
            var plain = this.project.Delete(projectId);

            return(JsonHelper.PlatformCompose <IMeta, INull, Meta, Null>(plain));
        }
Esempio n. 15
0
        public IOneSkyResponse <IMeta, INull> Update(int projectId, string name = null, string description = null)
        {
            var plain = this.project.Update(projectId, name, description);

            return(JsonHelper.PlatformCompose <IMeta, INull, Meta, Null>(plain));
        }
Esempio n. 16
0
        public IOneSkyResponse <IMeta, IProjectNew> Create(int projectGroupId, string projectType, string name = null, string description = null)
        {
            var plain = this.project.Create(projectGroupId, projectType, name, description);

            return(JsonHelper.PlatformCompose <IMeta, IProjectNew, Meta, ProjectNew>(plain));
        }
Esempio n. 17
0
        public IOneSkyResponse <IMeta, IProjectDetails> Show(int projectId)
        {
            var plain = this.project.Show(projectId);

            return(JsonHelper.PlatformCompose <IMeta, IProjectDetails, Meta, ProjectDetails>(plain));
        }
Esempio n. 18
0
        public IOneSkyResponse <IMetaList, IEnumerable <IProject> > List(int projectGroupId)
        {
            var plain = this.project.List(projectGroupId);

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <IProject>, MetaList, List <Project> >(plain));
        }
Esempio n. 19
0
        public IOneSkyResponse <IMetaList, IEnumerable <ILocale> > List()
        {
            var plain = this.locale.List();

            return(JsonHelper.PlatformCompose <IMetaList, IEnumerable <ILocale>, MetaList, List <Localeo> >(plain));
        }
Esempio n. 20
0
        public IOneSkyResponse <IMeta, IImportTaskFileInfo> Show(int projectId, int importTaskId)
        {
            var plain = this.importTask.Show(projectId, importTaskId);

            return(JsonHelper.PlatformCompose <IMeta, IImportTaskFileInfo, Meta, ImportTaskFileInfo>(plain));
        }